﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SalesPortal.Web.Controllers
{
    /// <summary>
    /// A controller for testing certain functionality of web site (eg. email)
    /// </summary>
    public class TestController : Controller
    {
        public ActionResult Index()
        {
            System.Security.Claims.ClaimsPrincipal cp = 
                System.Web.HttpContext.Current.User as System.Security.Claims.ClaimsPrincipal;
            System.Security.Claims.ClaimsIdentity ci =
                cp.Identity as System.Security.Claims.ClaimsIdentity;
            //AuthenticationType: "ApplicationCookie"
            //IsAuthenticated: true
            //Name: "zhixian@hotmail.com"




            //ci.AddClaim(new System.Security.Claims.Claim(
            //    System.IdentityModel.Claims.ClaimTypes.GivenName, "ZHIXIAN"));
            //ci.AddClaim(new System.Security.Claims.Claim(
            //    System.IdentityModel.Claims.ClaimTypes.Gender, "MALE"));
            //ci.AddClaim(new System.Security.Claims.Claim(
            //    System.IdentityModel.Claims.ClaimTypes.Surname, "ONG"));

            //UserManager
            //var userclaims = UserManager.GetClaimsAsync(user.Id);
            



            return View();
        }

        public ActionResult Email()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

    }
}